package com.heima.wemedia.controller.v1;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.SensitiveDto;
import com.heima.model.wemedia.pojos.WmSensitive;
import com.heima.wemedia.service.WmSensitiveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

//@RestController
//@RequestMapping("/api/v1/sensitive")
//public class WmSensitiveController {
//    @Autowired
//    private WmSensitiveService wmSensitiveService;
//
//    //删除敏感词
//    @DeleteMapping("/del/{id}")
//    public ResponseResult deleteSensitive(@PathVariable("id") Integer id) {
//        return wmSensitiveService.deleteSensitive(id);
//
//    }
//
//    //查询列表
//    @PostMapping("list")
//    public ResponseResult getList(@RequestBody SensitiveDto dto) {
//        return wmSensitiveService.getList(dto);
//    }
//
//    //保存敏感词
//    @PostMapping("save")
//    public ResponseResult save(@RequestBody WmSensitive wmSensitive) {
//        return wmSensitiveService.getSave(wmSensitive);
//    }
//
//    //修改
//    @PostMapping("/update")
//    public ResponseResult update(@RequestBody WmSensitive wmSensitive) {
//        return wmSensitiveService.getUpdate(wmSensitive);
//
//    }
//
//}
